package com.fastCms.business.bim.daos;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fastCms.business.bim.pojo.entity.AreaDeviceRel;
import com.fastCms.business.bim.pojo.po.AreaDeviceRelPO;
import com.fastCms.business.bim.pojo.vo.DeviceInfoVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 区域所关联的设备 Mapper 接口
 * </p>
 *
 * @author liusq
 * @since 2021-04-07
 */
@Repository
public interface AreaDeviceRelMapper extends BaseMapper<AreaDeviceRel> {

    List<DeviceInfoVO> getDevicesByAreaId(Integer areaId);

    List<AreaDeviceRel> findByAreaIdAndDeviceIdIn(AreaDeviceRelPO deviceRelPO);

}
